package com.powerunion.datacollection.dao;

import java.util.List;

import net.sf.json.JSONArray;

import com.powerunion.datacollection.model.Role;


public interface RoleDao {

	public String save(Role role) throws DaoException;
	
	public Role findRoleByKey(String id) throws DaoException;
	
	public boolean delete(String[] codes) throws DaoException;
	
	public List findRoles() throws DaoException;
	
	public JSONArray getUserTree(String paraSeq,int type) throws Exception;
	
	public JSONArray getRoleTree() throws Exception;
}
